remove ejb behavior for services that do not benefit from it
fix NPE when content is empty and fix character encoding issues