When creating a UTF8 string only use up until the first null