Fix problem with TLS encoding.

This PR is supposed to fix https://github.com/maxwell/screencap/issues/16 as well as allowing using any parameter from phantomjs that might be needed in the future.