New util function to preserve case in embedded strings while converting to lower case (used in the code panel of system browser)