Splits a file into two. Optimizes String construction. Escapes JSON values.