[Patch v2 1/6] hex-escape: (en|de)code strings to/from restricted character set