MediaUtils - URI encode file name before opening a URL connection

Fix #1260