Fix encoding error (fix #71)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>