Encode the filePath before adding it to the signature