Fix encoding error in ECC group encoding, fix by fxdupont on github