using standard java method for getting mimetype from file name