My application has a code which does the task of encoding URLs. It takes in URL string values and passes it to the constructor of java\'s new URI(url) constructor.