stringutil: move generic string helpers to new module
Per https://phab.mercurial-scm.org/D2903#46738
URL and file paths functions are left since they are big enough to make
separate modules.
util: remove unused private constant '_hextochr'
The only user, _urlunquote(), was removed by
81d38478fced.