fix stream URL extension and mime type