Sean Kelly:
I'm clearly missing something. ASCII and UTF-8 are compatible.What's stopping you from just processing these as if they were UTF-8 strings?
std.algorithm is not closed (http://en.wikipedia.org/wiki/Closure_%28mathematics%29 ) on UTF-8, its operations lead to UTF-32.
Bye, bearophile