Changed to UTF-8 encoding
Aligned code to Ruby programming standards