Write out the erb template result in binary mode.