git hook: escape backslash

clang-format diff is not written out correctly if the code contains '\n'. The new line is interpreted by echo.
@mhamrle I think you are potentially matching too much. What about

    diffs=$(./scripts/build/clang-format-wrapper.sh "$files" | sed 's/\\n/\\\\n/g')

?