Added tilde (~) to the encoded URL chars. Fixes #289.
Release 4.0.1