collect.py: fix scan method file content decoding