Fix encoding in layered nav. Fixes #3600

@coenjacobs for .14