Add 'encoding: UTF-8' for Ruby < 2 compatibility