Set locale to UTF-8

Previously, the template databases were created as SQL_ASCII. This made it tricky to create UTF-8 databases. This fixes that.