Version 0.3.2: Check if the generic foreign key is a pk or natural key before trying to replace characters