better fix for encoding in index.html.erb

closes #746