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