fixes Antaris/RazorEngine#181.