apply patch for ruby 1.9 who fixed warning: regexp match /.../n against to UTF-8 string