Fragment now calls to_s on code to ensure string

Some rare cases where symbols were being passed to fragments are now
solved by this. If anything other than a string gets passed, then they
are converted to strings ready for concatenation.