BUG: encoding in py3 bytes constructor