change logic whether uri has suffix or not

Why it looking for '.' symbol, there is no restrictions about mandatory presence of it in \Config::get('url_suffix'), it can be ',', for example.