Fixed UTF-8 encoding crash in web module

Something more suited for a public library.