More robust .xlf to .php conversion