solved problem with SCRIPT_NAME and ORIG_SCRIPT_NAME and added support for german special characters