bugfix: handle non-ascii in OAI-PMH identifier

Handle non-ascii characters in identifier when generating Header in
OAI-PMH responses
bugfix: fix WSGI OAI-PMH error message XML

 - Space between attributes
 - XML escape error string