Move encoding utility function to st2common.util.compact module.
Move encoding utility function to st2common.util.compact module.

nzlosh/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,nzlosh/st2,nzlosh/st2,Plexxi/st2,Plexxi/st2,Plexxi/st2,StackStorm/st2,StackStorm/st2,StackStorm/st2