Fix escaping of media when it's on a remote server
Merge pull request #589 from timrae/fixRemoteMediaEscape

Fix escaping of media when it's on a remote server