It's unnecessary to encode the final Powershell command in this context because the modified YSoSerial payload will properly treat the entire string as the OS command to run.