Fixed issues with filters on 'trades.php'

Filters weren't working for TCGs with spaces in the name. Also, the URL for the "New Trade" button wasn't updating correctly under certain circumstances.