Template unicode method and tests