make utf-8 prompt support ruby 2.2
merge #3235 make utf-8 prompt support ruby 2.2