pub fn write_string_u32(buf: &mut Vec<u8>, s: &str)
Write a length-prefixed UTF-8 string with a u32 length prefix. Used for order-ID hash generation.