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