Version 0.0.6: encode callback_uri if necessary.