Write html output in binary mode

JRuby on windows tries to replace all \n with \r\n and does it so poorly that it takes forever to generate the file.
To avoid any kind of interpretation, set the writing mode to wb+ (B meaning binary).