My solution

+encode, +decode