Fixed return type

From bytes to str
Removed decode from test filename
Fixed convert bytes to str

Use compact function for convert
Merge pull request #1530 from vlastv/patch-3

Fixed return type