Fixed some bugs in delete by id / file

* Remove homogeneize_latex_encoding which is problematic
* Fixed encoded path to pdf files