_compat: to_bytes and to_unicode use 'ascii' encoding by default.