Convert XML header from bytes to string