Datauri: fix bug where non text files got utf-8 enc.