use strict compliant method to specify encoding