Encode the filePath before computing the signature