Fix local presentations
Better sanitizing and escaping