bytes takes encoding on py3