DecodeURIComponent is necessary for any data coming across from the client file, but is not for anything else. The only unnecessary call I see is for windowGroup