You can soak it in dishwashing detergent and then scrub it with a soft toothbrush. Something like that is effective, does no damage to the razor, and doesn't put any potentially harmful substances in contact with your skin when you shave after cleaning the razor.