LangUtils optimizations and server fix

Signed-off-by: ShadowChild <shadychild12@gmail.com>