Fixed the bug with parsing files and getting str
Added Exception to all try blocks

This should allow us to handle keyboard interrupts better
Merge pull request #1174 from TechEmpower/1173

Fixed the bug with parsing files and getting str