ruby 1.8.7 support for fixing unicode issue broke 1.9x, this should resolve