Update membership export to handle unicode.