Fixed error 500 on reversing urls for tags containing spaces.