At the moment, if you need to handle different encodings, this limits the translator to Firefox, Standaorne, and Server, so set browserCompatibility to "gsv". Although given that you need to be authenticated to use this, I'm not 100% sure that it would work with Server or Standalone.