error_log fix in encoding