Bug 997519 - Ensure that an valid encoding will be passed to nsTextToSubURI::UnEscapeAndConvert(). r=neil