Use locale's encoding for writing files in the test helper, should fix django-asset's tests.

Also removed unnecessary prints.