Large amount of escaping and sanitizing

Work in progress