Forgot substring indexes in hexEscape, updated accordingly.