Fixed #87 manually escaping single quotes after JSON encode