Enhanced GetMemberName to be more robust.