Fix image encode (base64), ref #119

if data not decode utf-8 is image file (decote to base64)