Moves the encodeHashComponent and decodeHashComponent functions out of hash_util and into internal_url which belongs to shared. This is to accommodate sharing of this code with mobile or any other codebases that do not wish to duplicate logic.