handle ruby 2.0 utf-8 encoding. check for the value that is actually parsed