haskell Implements the "StringPrep" algorithm