PHP fixes for spaces in ref attr
Merge pull request #72 from CIPowell/master

PHP fixes for spaces in ref attr