Added error message for files with invalid characters and table heading