apply patch from issue: https://code.google.com/p/sardine/issues/detail?id=140