Fix charset bug (UTF8 encoding)
Second fix for charset
Fix sorting after keep_old insertions (duplicate)