Fixed issue downloading XML reports

The XML report has an extra </report> tag which prevents the .text
method from working properly. I used the .to_s method instead.

I also moved the rescue statement because it was masking other errors
that were being raised.
Handle single quotes for OpenVAS import
Merge branch 'master' of https://github.com/averagesecurityguy/metasploit-framework