- // in hrefs (% # / : ? = &) or that we need to treat manually (\).
- url = to_percent_encoding(url, from_ascii("%#\\/:?=&"));
+ // in hrefs: % # / : ? = & ! * ' ( ) ; @ + $ , [ ]
+ // or that we need to treat manually: \.
+ url = to_percent_encoding(url, from_ascii("%#\\/:?=&!*'();@+$,[]"));