Fix a daft thing with char casting & add a test