Text this: A method for producing polymer-encapsulated nanoparticles