Fixes #1198. Strings not printed properly to windows console