add encoding to latex_to_pdf to solve invalid ASCII errors for ruby 1.9
add encoding to latex_to_pdf to solve invalid ASCII errors for ruby 1.9

amagical-net/rails-latex,baierjan/rails-latex,cernyjakub/rails-latex