added decode, updated name from Escape to Encode