enforcing writing codec