Avoid the "bad child path" exception after defining a child with leading/trailing slashes in the refererence.