Converting methods extracted to Converter module
Issues with jruby fixed by changing the approach to detect convertible dummy encodings