0.11-stable: Fix for Windows where encoding `cp0` is used to indicate 'no encoding'. Follow-up to [7390].
Authored by: osimons 2008-08-05
Parent: [r7440]
Child: [r7442]