Qdb: Properly encode text into UTF8