(#18092) Enable password with a sharp is not correctly parsed

Since the device is defined by an URI, when the enable password contains a sharp, the password used is not correct.

Using uri.to_s is maybe not the best solution, but only one parameter is used. A full-featured parser is not needed for the moment.