You need yo check for nul-bytes