Initial code import Code taken from Apache Tomcat and modified as follows: - change package - in-line join(Collection<String>) - replace Tomcat's Base64 handling with Java 8's This code is untested