core: strip newlines off of IDs [GH-2024]