Check that translate hook returns a string.