Fix incorrectly terminated string