Encode input

->render returns decoded data now