First of all, sorry for the lack of logs, proofs and reproducible scenarios, I'm at work and I don't have much time to gather them.
I just wanted to point that the process may fail if character like the spanish letter ñ is found in the title of the PDF file.
May be in my spare time I can find a way to fix this and open a PR, but for the moment I just wanted you to know that.