Fix for assert encoding issue on Ruby 2.0