fixed encoding in ruby server