filter out nonbreaking whitespace chars before sending to local and server compiler