Chaperone-mediated protein folding at the nanoscale