Use the mime library instead of maintaining our own