[#808] Fix unicode template 500 error

take 2 see issue #808