Fix bug in Replica.get_absolute_filepath for filepaths containing '#'

The bug involved using the "path" component of the parsed "url" when it wasn't actually a URL to start with.  (Most of the commit is unit test enhancement.)