Fix an error on system without full UTF-8: invalid byte sequence in US-ASCII

For example on OpenBSD with Ruby 2.0 the module fails to apply because of that error.