If you are cloaking the URL make sure to use a DOCTYPE tag in the enclosing HTML.

Not having a DOCTYPE tag causes IE to render the page in Quirks mode(http://en.wikipedia.org/wiki/Quirks_mode) thus causing problems.

The solution should be quite simply to include the tag:

<!DOCTYPE html>

into the html where you are cloaking the URL.