encode id in tempfile path

thanks @semanticdreamer
bump patchlevel