The answer is closer than you think.

/help $encode
/help $decode