Properly escape strings when serializing source maps