Modified algorithms.sanitize() to accept strings and convert to unicode.
Added appropriate tests for said changes.
Fixed doc comment in algorithms.sanitize().