Remove null chars when reading a string slice