Ensures that patches are generated in UTF_8