MediaHelper: Implement proper URL encoding

Resolves #42