Fix #192 - resolve problems with encoding and transliterator between various ruby versions.