Fix strings encoding (Closes #6)