Make UTF8 encode optional.