safe a few encoding steps