Would it make sense to rename this method to `setEncodingFlags()` instead?