fixed #\nul character in collected string