Update some locale setting
Modify some logging output
should solve the input error cause by Calibre
Fix search/replace encode bug