Consistent null-termination in R client