Changed wstrip to support various encoding again