Encode filename in utf-8 when saving image