Move function xmlsafe() from Export.php to OAI extension

Exporting function from Export.php.

Change-Id: I82a78ff7a34402f2cc065643d90b064b996c525d
Merge "Move function xmlsafe() from Export.php to OAI extension"