fix for jboss-as which fails if charset is not precisely set