adding magickal character encoding headers to fix a Jruby error