Centering doesn't work

Centering doesn't work. This is due to control characters for bold etc. I have to write my own centering function and not use the Ruby-builtins.