improve printwcs, add a test
make string formatting work woth versions < 2.7
Merge pull request #2457 from nden/printwcs

improve printwcs, add a test