move to quotemeta() for the value, clean up indentation, add additonal
unit test to validate that we MUST quotemeta($value) or even more strange
things will erroneously pass.