Correct mime type get in socket class (too greedy regexp)