Now the lang menu is working again. Note: I've used the PARAM_SAFEDIR flag because it's the only one supporting alpha+digits+underscore. Its name doesn't seem to be perfect for this. Perhaps we should create some alias?