This is used to filter characters that don't make sense in a percent expression This implementation is very rudimentary