base64: bug found when debugging django garbage file problem
django: fix #893