Added exclude parameter

@NotDaveLane's addition of the exclude parameter, merged with
@cleverdevil's fix for ascii characters