Guess mime type (otherwise log files dont handle newlines correctly)