Basic encoding works