Encode the filename macro.

Also tweak the utils string functions.

git-svn-id: https://svn.boost.org/svn/boost/trunk/tools/quickbook@85807 b8fc166d-592f-0410-95f2-cb63ce0dd405