URI.encode file path so GPG does not strip it
Remove broken tests, cosmetic fixes