Fixed invalid multibyte escape error with Ruby >= 1.9