If you know the length of the array you can use Serial.write(data, len) and you won't need to add null bytes.
...R