Solve some autoguessing mime type issue in Firefox and Chrome