Fix hex, octal, back reference and control chars