This was in previous implementation. I just happened to stumble upon it while looking for URL encoding and found that the code is almost identical and decided to cite source.