moved encode to standard library