fixes social URI generation in importer for galleries