Changes in SWI since 2009

This might be of use. It is not specific to your problem, but might give you some insight into how to work with strings since 2009.