danielb2/weechat-scripts — pull request #1 by Kovensky (2012-08-17 14:21:17+00:00)
Title: Don't URI.encode URLs that don't need it 

This prevents URLs that are already URLEncoded from getting
doubly-encoded, breaking the resulting shortened URL. This is the case
most of the time with URLs copied from popular browsers' address
bar, at least with non-latin1 characters. Tested with tinyurl,
untested with the other services, but behaviour should be the same.

URLs to CJK paths usually already are escaped, such as
"%E7%AC%AC%E4%B8%80%E5%B8%AD". The double escaping
changed that to "%25E7%25AC%25AC%25E4%25B8(...)", thus breaking
the shortened link.