Convert filespec between absolute, relative, and URL formats.