workaround for encoding issue due to usage of ruby 1.9