There seems to be a bug in that the Content-Encoding handling.

if (encodedFilepath.length > 0) should be
if (encodedFilepath.length == 0)

I think. Changing that fixed my problem.

This is in the latest ~master;