Can this just be `str_map_bytes(string.to_owned(), map)`? (Or, is having this as a separate function even necessary, can that snippet just be inlined?)