Work around MS13-009

Hi @jjarmoc,

This pull request is related to https://github.com/rapid7/metasploit-framework/pull/1491 , feel free to review, test, discuss, etc. and once you agree with changes please land it, so the original one will be automatically updated :)

thanks!