sort log lines via sqlite3 using utf-8 encoding and decoding as necessary