add local copies of string_bytes