PDF: improved valid to only handle lower case hex