Make codec explicit - set to None for tests.