solved encoding issue with substr()

Signed-off-by: echteinfachtv <info@echteinfach.tv>