fixed bug where control characters in a title were messing with the
output to the server. also fixed another bug in the usage of .title