If you restrict someone with a reason which contains an apostrophe the reason becomes garbled and usually gets cut off due to the limited reason length.
For example, if you were to run
sm_ct thorgot 20 didn't respect mah authoritah
The reason would become something like
This has something to do with the way it is escaping the apostrophe. I would suggest to just strip apostrophes from the reason because fixing the way it escapes apostrophes would probably be more difficult.