Improve MySql log filtering regex and remove unnecessary utf8 conversion