Fix for truncated error messages on Windows
Merge pull request #210 from Bobris/master

Fix for truncated error messages on Windows