src: fix StringBytes::Write if string is external