encode hash url fragment