[fix] Work around a Safari 5.1.7 bug on windows