A clone of http://cppcms.com/files/nowide/