Fix identifying mime-type. [issue #122]