Fix encoding settings ajax getlog