Add explicit tests for . and / at the end, because those were issues present in older PHP versions and Suhosin. Also add some comments about what remains to be done.