Fixes #2294. String#crypt fails on Windows