Update chardet
Give api encoding error log
Return image filepath in unicode
Encode templ download destination