fix(builder): escape \ to avoid errors in serialization of Dockerfile

closes #2147