Fixed several issues

-Fixed unicode comparison incompatibility that popped up while creating
pairs.
-Replaced spaces by "_" while looking for outlinks.