Current lib escapes single quotes by doing \' when you actually escape them by doing ''. http://yaml.org/spec/current.html#id2534365