Make sure prefixes are split at '.' when writing TriG