Fix sloppy string termination