Fixed invalid multibyte escape error with Ruby >= 1.9

Error occuring when using Ruby 1.9 because of invalid multibyte sequence in antlr3/template.rb was fixed.