Hong Kong security law must protect basic freedoms -U.N. rights chief