URL(s) can only be sent over the Internet using the ASCII character-set. Often especial when we generate when automatically generating url(s) we need to make sure that contains only ASCII character-set
To ensure that our url(s) contain all the time only allowed characters we can encode url(s). For this PHP has few handy functions (like urlencode, rawurlencode) that make all work for us.