Keep sourceMap as string

Fixes [object Object] being written to source map file.
Merge pull request #583 from didoarellano/fix-source-map-output

Fix [object Object] being written to source map file