fix bytes-str conversion