Fixed UTF-8 error in ydim.rb and unit-tests