Update templateFactorySpec.js

updated test for accept header charset: utf-8