Convert the returned mimetype from bytes to str.
Convert the returned mimetype from bytes to str.

magic returns the mimetype as bytes (for some reason) so we need to
decode it before proceeding.

poljar/mario