additions to pm2auth and ontologyBuilder to resolve UTF-8 encoding issues