Added encoding to ipn-controller