Remove instance of unsafePerformIO
Merge pull request #338 from jsl/fix_unsafe_io

Remove instance of unsafePerformIO