Fixes #1035. String#crypt behaving differently than in MRI