Fixed issue with file name causing a string overflow