cleanup char* casts and replace one useless SvPV with SvPV_nolen