n1k0/casperjs — pull request #210 by alfetopito (2012-08-16 16:15:13+00:00)
Title: Encoding binary file download POST parameters

When using casper.download() with unicode characters (é, á, ç, etc), sometimes it just garbled the response data and other times the request completely failed.
When replacing escape (https://github.com/n1k0/casperjs/blob/master/modules/clientutils.js#L317) by encodeURIComponent the issue is gone.

Not sure if it covers all the cases, but it works for me.

In any case, it could help someone else, so here it goes the pull request.