fix issue with read names with whitespace