Removes unused variable len in string_to_bytes().