Fix multiple occurences of `-` or `_` in tokens
Fix multiple occurences of `-` or `_` in tokens

String replacements replaced only the first occurence of `-` or `_` in tokens for base64 decoding, which meant that there was a base64 decode error if more than one of either was present in the base64url format. Use regexps in replacement instead to get a global match.

dogeared/jsonwebtoken.github.io,alokmenghrajani/jsonwebtoken.github.io,olehlong/jsonwebtoken.github.io,mancvso/jsonwebtoken.github.io,dogeared/jsonwebtoken.github.io,niwinz/jsonwebtoken.github.io,optikfluffel/jsonwebtoken.github.io,niwinz/jsonwebtoken.github.io,danieljx/jsonwebtoken.github.io,garyf/jsonwebtoken.github.io,gurpreetsinghblissit/jsonwebtoken.github.io,garyf/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,emarref/jsonwebtoken.github.io,emarref/jsonwebtoken.github.io,nov/jsonwebtoken.github.io,sdawson/jsonwebtoken.github.io,stof/jsonwebtoken.github.io,lcobucci/jsonwebtoken.github.io,mancvso/jsonwebtoken.github.io,lcobucci/jsonwebtoken.github.io,EricLagergren/jsonwebtoken.github.io,danieljx/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,EricLagergren/jsonwebtoken.github.io,stof/jsonwebtoken.github.io,sdawson/jsonwebtoken.github.io,olehlong/jsonwebtoken.github.io,pauldijou/jsonwebtoken.github.io,vctrfrnndz/jsonwebtoken.github.io,gurpreetsinghblissit/jsonwebtoken.github.io,pauldijou/jsonwebtoken.github.io,vctrfrnndz/jsonwebtoken.github.io,nov/jsonwebtoken.github.io,alokmenghrajani/jsonwebtoken.github.io,b---c/jsonwebtoken.github.io,optikfluffel/jsonwebtoken.github.io