fix page saving because of json output's characters limit