See changes in strings.Map(): https://golang.org/doc/go1.12#strings
- Avoid doing multiple buffer copies - Move parser and format detection logic to its own package