https://algs.tech/posts/java_resolve-invalid-character-was-present-in-the-cookie-value.html