python/samba/gp_parse: Fix mulitple encode step with write_section