Man, 21, has appeared before magistrates in Huddersfield