decode latin-1 properly