get_url function

Convert file names to urls