Stripping script/style urls only of version info

The previous version of this function removed all parameters. This meant that any scripts/styles requiring additional parameters (e.g.  the styling of All-in-one Event Calendar plugin) failed to load.