fixed encoding issue while parsing gedcom file