enforce trailing slash at the end media file base url

fixes #3