matching preferred styling
ruby 187... support...
refactor out encoding method