Encoding uri components
Cancel button works