encode/decodeURI string in hash