file.replace and file.search work properly with /proc files