Make the metadata encoding more robust. Try different encoding if UTF-8 parsing fails.