Use correct method for setting encoding.