Changing from using `decode` on an object name to using `encode` on a temp
file name. This may be no better, but it reduces the number of changes
from the mainline.