base.html: Change non-ASCII characters to HTML entities

This fixes errors such as "incompatible character encodings: UTF-8 and CP850 in
base.html" on Windows.