Added a small fix to handle weird encoding issue in Ruby >= 1.9