Fixed Typo In Security.php

`$character` is undefined. Did you mean `$char`?