Change safestr() to safebytes().