recreate unsafe codec