sanitize: escape only needed characters + test
sanitize: fix code style
Merge pull request #52 from subzey/feature/better-sanitize

sanitize: escape only needed characters + test