Separate percentEncode function in url checker.