Problem to login with mega

That is great investigation - thanks @Ajaja

I checked with the mega sdk which I think does a similar thing (It is in rather cryptic C++)

I don't really understand what the parameter after the / is for so I've ignored it.

I made an attempt to fix this here

https://beta.rclone.org/branch/v1.50.2-124-gaefe18fc-fix-mega-decode-beta/ (uploaded in 15-30 mins)

I patched the vendor directory in rclone so if it tests out OK then I'l push it up into the go-mega repo and pull it back into rclone.

@zbrasseaux can you try that too?