Ah, I was thinking this was Python code (because it sort of is). Mako does require that the encoding be specified but allows it to be done in the template call, which we do, so no encoding is necessary here.