fixing ruby encoding